import { BrowserModule } from '@angular/platform-browser';
import { ErrorHandler, NgModule } from '@angular/core';
import { IonicApp, IonicErrorHandler, IonicModule } from 'ionic-angular';
import { SplashScreen } from '@ionic-native/splash-screen';
import { StatusBar } from '@ionic-native/status-bar';
import {HttpClientModule} from '@angular/common/http';
import { Toast } from '@ionic-native/toast';
import { SocialSharing } from '@ionic-native/social-sharing';
import { Network } from '@ionic-native/network';


import { MyApp } from './app.component';
import { HttpProvider } from '../providers/http/http';
import { NativeProvider } from '../providers/native/native';
import { BusiProvider } from '../providers/busi/busi';
import { AppVersion } from '@ionic-native/app-version';
import { FileChooser } from '@ionic-native/file-chooser';
import { FileTransfer} from '@ionic-native/file-transfer';
import { InAppBrowser } from '@ionic-native/in-app-browser';
import { FilePath } from '@ionic-native/file-path';




@NgModule({
  declarations: [
    MyApp,
  ],
  imports: [
    HttpClientModule,
    BrowserModule,
    IonicModule.forRoot(MyApp,{
      mode: 'ios',
      tabsHideOnSubPages: 'true',
      backButtonText: ''

    })
  ],
  bootstrap: [IonicApp],
  entryComponents: [
    MyApp,
  ],
  providers: [
    StatusBar,
    SplashScreen,
    {provide: ErrorHandler, useClass: IonicErrorHandler},
    HttpProvider,Toast,SocialSharing,
    NativeProvider,Network,
    BusiProvider,AppVersion,FileChooser,FileTransfer,InAppBrowser,FilePath
  ]
})
export class AppModule {}
